package cn.com.anypay.manager.service;

import cn.com.anysdk.ocr.exception.OcrException;
import cn.com.anysdk.ocr.model.OcrResult;
import org.springframework.web.multipart.MultipartFile;

import java.util.Map;

public interface OcrService {
    Map<String, Object> getCurrentConfig() throws OcrException;

    String switchProvider(Map<String, Object> config);

    OcrResult recognize(MultipartFile file, String serviceType) throws OcrException;
}
